package com.huiyan.hysys.config;

public class SystemConfig {

    //验证码的位数
    public static final int CODE_LEN = 6;


    //标记短信发送的类型
    public static final int SMS_TYPE_1 = 1;  //注册验证码
    public static final int SMS_TYPE_2 = 2;  //登录
    public static final int SMS_TYPE_3 = 3;  //找回


    //统一的结果返回码
    public static final int R_OK = 1000;
    public static final int R_FAIL = 10001;


    //用户的标记位
    public static final int USER_OK = 1;
    public static final int USER_FAIL = 2;


    //用户操作日志类型
    public static final int USER_LOG_1 = 1;  //注册
    public static final int USER_LOG_2 = 2;   //登录
    public static final int USER_LOG_3 = 3;    //注销  退出


    //OSS访问地址的默认有效期
    public static final int OSS_URL_DAYS = 30;   //默认30天


    //自定义消息头
    //记录令牌的请求消息头
    public static final String USER_TOKEN = "usertoken";
    //记录用户信息的id的请求消息头
    public static final String USER_ID = "userid";
    //记录请求的版本号
    public static final String APP_VERSION = "appversion";

    //记录oss存储的资源的类型
    public static final Integer OSS_1 = 1;
    public static final Integer OSS_2 = 2;
    public static final Integer OSS_3 = 3;



}
